package com.ygou.mapper;

import com.ygou.pojo.CountInfo;
import com.ygou.pojo.Orders;
import com.ygou.pojo.OrdersExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface OrdersMapper {
	
	/**
	 * 获取交易金额
	 * @param example
	 * @return
	 */
	String findSum(String where);
	
	//获取所有金额
	int sum();
	
    int countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int deleteByPrimaryKey(Integer orderid);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> selectByExample(OrdersExample example);

    Orders selectByPrimaryKey(Integer orderid);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);
    
    List<Integer> count(Map<String,Object> map);
}